cmake_minimum_required(VERSION 3.10)
project(tryopen)

set(CMAKE_CXX_STANDARD 11)

find_package(OpenCL REQUIRED)

include_directories(${OpenCL_INCLUDE_DIRS})

add_executable(mytest src/main.cpp)
target_link_libraries(mytest ${OpenCL_LIBRARIES})

# 复制OpenCL内核文件到构建目录
configure_file(src/kernel.cl kernel.cl COPYONLY)



